package com.itheima.课件.otherstream.convertedio;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.List;

public class ConvertedDemo3 {
   /* public static void main(String[] args) throws IOException {
        User user = new User("zhangsan","qwer");
        User user1 = new User("zhangsan","qwer");
        User user2 = new User("zhangsan","qwer");

        ArrayList<User> list = new ArrayList<>(List.of(user,user1,user2));

        ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream("a.txt"));
        oos.writeObject(list);
        oos.close();
    }*/
}
